package design.Day01;

import design.Day01.behavior.FlyBehavior;
import design.Day01.behavior.QuackBehavior;

/**
* @description: 橡皮鸭
* @author: wangjun
* @create: 2022-01-07
*/
public class RubberDuck extends Duck implements FlyBehavior, QuackBehavior {

    @Override
    void display() {
        System.out.println("外观是橡皮鸭");
    }

    @Override
    public void fly() {

    }

    @Override
    public void quack() {

    }
}
